<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Insert title here</title>
        <include file="Public:easyui_res" />
        <script type="text/javascript">
        function view_pic(url){    	 	
        	var data = "<img src='"+url+"' id='pic' height='300px' />";
        	$.messager.alert('查看图片',"",'info');
			$(".messager-window").css("width","");
			$(".messager-body").css("width","");
			$(".window-header").css("width","");
			$(".messager-window").css("left","100px");
			$(".messager-window").css("top","40px");
			$(".window-shadow").css("display","none");
        	$(".messager-body").html(data);
        	
      }
        </script>
    </head>
    <body>
      <div id="tb" style="padding:5px;height:auto;">
		<div style="margin: 10px 0 10px 10px" >
		<!-- form表单 指定id和name之后会自动带到服务器 -->
		<form name="searchform" method="get" action="" id ="searchform" style="height:20px;margin-bottom: 20px">  
		   
	    	<input class="easyui-textbox" name="device_name" data-options="prompt:'按设备名称查找'" style="width:140px;height:32px">
	    		    	
	    		<input class="easyui-textbox" name="version"   data-options="prompt:'按版本查找'" style="width:160px;height:32px;margin: 15px"></input>
	    		
	    		
	        <a href="javascript:void(0);" id="submit_search" class="easyui-linkbutton" iconCls="icon-search"  style="width:60px;height:32px">查询</a>
	      
	        <a href="javascript:void(0);" class="easyui-linkbutton" iconCls="icon-add"  style="height:32px;float: right;margin-right: 60px" onclick="javascript:window.location.href='__URL__/add'">添加新设备</a>
	         
 		</form>
		</div>
	</div>
	<!-- 展示数据部分 -->
        <table id="dg"  style="width:100%; "  title="查询结果" 
			data-options="rownumbers:false,
			singleSelect:true,
			pagination:true,
			ctrlSelect:true,
			fitColumns:true,
			loadMsg:'正在加载,请等待....',
			url:'__URL__/getList',
			method:'post',
			toolbar:'#tb',
			">
		<thead>
			<tr>
				<volist name="table_title" id="vo"  >
					<th data-options="field:'{$key}',align:'center',width:'10px'">{$vo}</th>
				</volist>
			</tr>
		</thead>
	</table>



    </body>
</html>